﻿@model PNProject.Core.PagingFeedback
@{
    ViewBag.Title = "Questions";
    Layout = "~/Views/Shared/AdminLayout.cshtml";
}
<h2>Danh sách hỏi - đáp từ khách hàng (@Model.TotalItem.ToString())</h2>
<img src="/Images/Base/check.png" style="margin-right:10px; margin-bottom:-3px; width:15px; height:15px;"/><span>Đã trả lời</span>
<img src="/Images/Base/uncheck.png" style="margin-right:10px; margin-bottom:-3px; width:15px; height:15px; margin-left:40px;"/><span>Chưa trả lời</span><br /><hr />
@foreach (var item in Model.Content)
{
    string image = string.IsNullOrEmpty(item.ReplyBy) ? "/Images/Base/uncheck.png" : "/Images/Base/check.png";
<div class="item-div">
<img src="@image" style="margin-right:10px; margin-bottom:-5px; width:15px; height:15px;"/>
<a class="item-delete" href="/AdminFeedback/Delete/@item.FeedbackID" onclick="return confirmAction()">Xóa</a>
<a class="item-detail" href="/AdminFeedback/Reply/@item.FeedbackID">Trả lời</a>
<a class="item-link" href="/AdminFeedback/View/@item.FeedbackID">@item.Title</a>
<span style="font-style:italic">( từ @item.Email )</span>
</div>
}
<hr />
@foreach (var item in Model.ListPages)
{
    if (item == Model.ActivePage)
    {
    <a class="active_page_link" href="/AdminFeedback/Questions/@item.ToString()"><span>@item.ToString() </span></a>
    }
    else
    {
    <a class="page_link" href="/AdminFeedback/Questions/@item.ToString()"><span>@item.ToString() </span></a>
    }
}
